<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>吸血鬼幸存者</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div id="gameContainer">
        <canvas id="gameCanvas" width="800" height="600"></canvas>
        
        <!-- 游戏UI -->
        <div id="gameUI" class="hidden">
            <div id="healthBar">
                <div id="healthFill"></div>
            </div>
            <div id="levelInfo">
                <span id="level">等级: 1</span>
                <span id="experience">经验: 0/100</span>
            </div>
            <div id="timer">时间: 00:00</div>
        </div>
        
        <!-- 开始界面 -->
        <div id="startScreen">
            <h1>吸血鬼幸存者</h1>
            <p>在无尽的敌人中生存下来！</p>
            <button id="startButton">开始游戏</button>
            <div id="instructions">
                <h3>游戏说明：</h3>
                <p>• 使用WASD或方向键移动角色</p>
                <p>• 武器会自动攻击附近的敌人</p>
                <p>• 击败敌人获得经验升级</p>
                <p>• 建筑会自动生产小兵协助战斗</p>
                <p>• 建筑不可破坏，会持续生产小兵</p>
                <p>• 生存时间越长分数越高</p>
            </div>
        </div>
        
        <!-- 升级界面 -->
        <div id="upgradeScreen" class="hidden">
            <h2>选择升级</h2>
            <div id="upgradeOptions"></div>
        </div>
        
        <!-- 游戏结束界面 -->
        <div id="gameOverScreen" class="hidden">
            <h2>游戏结束</h2>
            <p id="finalScore">生存时间: 00:00</p>
            <button id="restartButton">重新开始</button>
        </div>
    </div>

    <!-- 游戏脚本 -->
    <script src="js/utils.js"></script>
    <script src="js/balanceConfig.js"></script>
    <script src="js/spriteManager.js"></script>
    <script src="js/sprite.js"></script>
    <script src="js/pixelArt.js"></script>
    <script src="js/uiAssets.js"></script>
    <script src="js/soundGenerator.js"></script>
    <script src="js/performance.js"></script>
    <script src="js/player.js"></script>
    <script src="js/enemy.js"></script>
    <script src="js/weapon.js"></script>
    <script src="js/item.js"></script>
    <script src="js/clone.js"></script>
    <script src="js/minion.js"></script>
    <script src="js/building.js"></script>
    <script src="js/ui.js"></script>
    <script src="js/game.js"></script>
</body>
</html> 